<div class="app-modal valign-wrapper">
    <div class="container height100">
        <div class="row height100">
            <div class="col-md-6 col-md-offset-4 height100 valign-wrapper">
                <div class="modal-content" ng-show="!passmode && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <vote-title adding="adding"></vote-title>
                        </div>
                        <div><translate>Please confirm your selection and confirm your vote.</translate></div>
                    </div>
                    <div class="modal-body bordered">
                        <div class="scrolling">
                            <ul class="list-group">
                                <li class="list-group-item vote-list" ng-repeat="(key, item) in voteList" ng-click="removeVote(key)">{{item}}
                                    <i class="mdi-navigation-cancel right"></i>
                                </li>
                            </ul>
                            <div class="modal-body voting-fee">
                                <span class="fee-text flat-text pull-right"><translate>Fee: {{fee | liskFilter}} LSK</span>
                            </div>
                            <div class="modal-body voting-error" ng-if="fromServer">
                                <span class="pass-error">{{fromServer}}</span>
                            </div>
                        </div>
                    </div>
                    <div class="modal-body bordered" ng-show="adding">
                        <span class="send-info-text flat-text"><translate>You can select up to 33 delegates in one voting turn. Up to 101 delegates in total.</translate></span>
                    </div>
                    <div class="modal-body bordered">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <input type="submit" value="{{'CANCEL' | translate}}" ng-click="close()" class="btn-flat" />
                            </li>
                            <li>
                                <input type="submit" value="" adding="adding" vote-action ng-click="passcheck()" class="btn-flat" ng-class="{'blue-link': adding, 'red-link': !adding, 'disabled': sending}" ng-disabled="sending" />
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-content" ng-show="passmode && !checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="passcheck()">
                            <span class="sr-only"><translate>Close modal</translate></span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <form ng-submit="vote(secretPhrase)">
                            <div class="field-padding">
                                <div class="input-field">
                                    <input ng-focus="focus=='secretPhrase'" id="passPhrase" type="password" ng-model="secretPhrase" ng-trim="false" autofocus ng-class="{'invalid': fromServer}">
                                    <label for="passPhrase"><translate>Your Passphrase</translate></label>
                                </div>
                                <span class="pass-error" ng-show="fromServer">{{fromServer}}</span>
                            </div>
                            <input type="submit" ng-show="false">
                        </form>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <input type="submit" value="{{'Cancel' | translate}}" ng-click="passcheck()" class="btn-flat" />
                            </li>
                            <li>
                                <input type="submit" value="" adding="adding" vote-action ng-click="vote(secretPhrase)" class="btn-flat" ng-class="{'blue-link': adding, 'red-link': !adding, 'disabled': sending}" ng-disabled="sending" />
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="modal-content" ng-show="checkSecondPass">
                    <div class="modal-header modal-iconed">
                        <div class="close-modal" ng-click="close()">
                            <span class="sr-only"><translate>Close modal</span>
                        </div>
                    </div>
                    <div class="modal-header clearfix">
                        <div>
                            <h2>{{'Account Verification'|translate}}</h2>
                        </div>
                        <div><translate>Please enter your second passphrase below.</translate></div>
                    </div>
                    <div class="modal-body">
                        <form ng-submit="vote(secretPhrase, true)">
                            <div class="field-padding">
                                <div class="input-field">
                                    <input ng-focus="focus=='secondPhrase'" id="secondPhrase" type="password" ng-model="secondPhrase" ng-trim="false" autofocus ng-class="{'invalid': errorMessage}">
                                    <label for="secondPhrase"><translate>Your Second Passphrase</translate></label>
                                </div>
                                <span class="pass-error" ng-show="fromServer">{{fromServer}}</span>
                            </div>
                            <input type="submit" ng-show="false">
                        </form>
                    </div>
                    <div class="modal-body">
                        <ul class="nav modal-buttons pull-right">
                            <li>
                                <input type="submit" value="{{'GO BACK' | translate}}" ng-click="passcheck(true)" class="btn-flat" />
                            </li>
                            <li>
                                <input type="submit" value="" adding="adding" vote-action ng-click="vote(secretPhrase, true)" class="btn-flat" ng-class="{'blue-link': adding, 'red-link': !adding, 'disabled': sending}" ng-disabled="sending" />
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
